import {IptTypeConst} from 'st-ui-vue3-navie'
import {DictIptPropsPathEnum} from '../enums/dict-ipt-props-path-enum.ts'

/**
 * 字典输入属性配置
 */
export const DictIptProps = {
  [DictIptPropsPathEnum.NAME]: {
    label: '字典名称',
    type: IptTypeConst.TEXT,
    placeholder: '请输入字典名称',
    required: true,
  },
  [DictIptPropsPathEnum.CODE]: {
    label: '字典编码',
    type: IptTypeConst.TEXT,
    placeholder: '请输入字典编码',
    required: true,
  },
  [DictIptPropsPathEnum.REMARK]: {
    label: '字典备注',
    type: IptTypeConst.TEXTAREA,
    placeholder: '请输入字典备注',
  },
  [DictIptPropsPathEnum.SORT]: {
    label: '字典排序',
    type: IptTypeConst.INPUT_NUMBER,
    placeholder: '请输入字典排序',
  },
  [DictIptPropsPathEnum.DISABLED]: {
    label: '是否禁用',
    type: IptTypeConst.SWITCH,
    placeholder: '请选择是否禁用',
  },
  [DictIptPropsPathEnum.DISABLED_SWITCH]: {
    label: '是否禁用',
    type: IptTypeConst.SWITCH,
    onText: '启用',
    offText: '禁用',
  },
} 